import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import store from './store'
// 自定义tabBar(全局注册)需要中间突出菜单时使用，使用原生tabbar前往pages.json中将tabBar中的"custom"属性删除或者改为false即可
import tabBar from './components/tabBar.vue'
Vue.component("tabBar", tabBar);
// uview组件库
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// mixin
import BaseMixin from '@/mixins/base.js';
Vue.mixin(BaseMixin)
// 缓存
import Cache from './utils/cache'
Vue.prototype.$Cache = Cache;
// 常用的工具函数
import util from 'utils/util'
Vue.prototype.$util = util;
// 过滤器{{'17762345829'|phone}}
import filter from "./utils/filter";
Object.keys(filter).forEach((key) => {
    Vue.filter(key, filter[key]);
  });
  
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif